package com.sxz.sbs.applibrary.banner;

import android.widget.RelativeLayout;

import java.util.List;

/**
 * 轮播图配置
 */

public class AutoSlipBanner {
    public static AutoSlippingViewPager configBanner (AutoSlippingViewPager viewPager,List<Object> mData) {
        viewPager.removeViews();
        viewPager.setViews(mData);
        viewPager.setCurrentPage(0);
        viewPager.setAutoSlipping(true);
        viewPager.setLooperTime(3000);
        viewPager.setIndicatorPadding(10);
        viewPager.setIndicatorLocation(new int[]{RelativeLayout.CENTER_HORIZONTAL}, 10, 10, 10, 10);
        return viewPager;
    }
}
